package com.bupt.vueblog.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 谭继好
 * @Description 具体的博客信息，包含了博客的所有信息，仅用于查看
 * 但是也需要有ID，用于用户（取消）点赞和收藏时更新数据库
 * 与BriefArticleVO拼接
 * @date 2024-04-16 10:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AllArticleVO {

    private Integer id;
    private String title;
    private Integer likeNum;
    private Integer collectNum;
    private Integer commentNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private Boolean isLiked;
    private Boolean isCollected;
    private String content;
    private List<CommentVO> comments;
}
